<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'type' => 'vertical',
    'id' => 'form-danhsachnhathau',
    'enableAjaxValidation' => false,
        ));
?>
<div id="group-tendonvi" class="control-group">
    <label class="control-label" for="tendonvi">Tên đơn vị</label>

    <div class="controls">
        <?php echo $form->textField($model, 'tenDonVi', array('id' => 'tendonvi', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tenDonVi', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-tenduan" class="control-group">
    <label class="control-label" for="tenduan">Tên dự án</label>

    <div class="controls">
        <?php echo $form->textField($model, 'tenDuAn', array('id' => 'tenduan', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tenDuAn', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-tengoithau" class="control-group">
    <label class="control-label" for="tengoithau">Tên gói thầu</label>

    <div class="controls">
        <?php echo $form->textField($model, 'tenGoiThau', array('id' => 'tengoithau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tenGoiThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-hinhthucdauthau" class="control-group">
    <label class="control-label" for="hinhthucdauthau">Hình thức đấu thầu</label>

    <div class="controls">
        <?php echo $form->dropDownList($model, 'hinhThuc', CHtml::listData(HinhThucDauThau::model()->findAll(), 'id', 'value'), array('id' => 'hinhthucdauthau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'hinhThuc', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-quyetdinh" class="control-group">
    <label class="control-label" for="quyetdinh">Quyết định phê duyệt danh sách nhà thầu</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'quyetDinh', array('id' => 'quyetdinh', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'quyetDinh', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-danhsachnhathau" class="control-group">
    <label class="control-label" for="danhsachnhathau">Danh sách nhà thầu tham gia</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'danhSachNhaThau', array('id' => 'danhsachnhathau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'danhSachNhaThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-ngayxuatban" class="control-group">
    <label class="control-label" for="ngayxuatban">Ngày xuất bản</label>

    <div class="controls">
        <?php
        $this->widget('bootstrap.widgets.TbDatePicker', array(
            'model' => $model,
            'attribute' => 'ngayXuatBan'
                )
        );
        ?>
        <?php echo $form->error($model, 'ngayXuatBan', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-sobaodang" class="control-group">
    <label class="control-label" for="sobaodang">Số báo đăng</label>

    <div class="controls">
        <?php echo $form->textField($model, 'soBaoDang', array('id' => 'sobaodang', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'soBaoDang', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-tinhtrang" class="control-group">
    <label class="control-label" for="tinhtrang">Tình trạng thông tin</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'tinhTrang', array('id' => 'tinhtrang', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tinhTrang', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-mathongtin" class="control-group">
    <label class="control-label" for="mathongtin">Mã thông tin</label>

    <div class="controls">
        <?php echo $form->textField($model, 'maThongTin', array('id' => 'mathongtin', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'maThongTin', array('class' => 'error-message')); ?>
    </div>
</div>
<div class="form-actions">
    <button id="save-user" type="submit" class="btn btn-primary">Lưu</button>
    <a id="all-user" href="<?php echo $this->createUrl('user/index') ?>" class="btn btn-default">Quay lại danh sách</a>
</div>
<?php $this->endWidget(); ?>

